package com.laoxu.test.sqlitedemo.model.query;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.LocalTime;

/**
 * @author kalong
 * @date 2021/6/10
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class AccountQuery {

    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate birthdayStart;

    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate birthdayEnd;


    @JsonFormat(pattern = "HH:mm:ss")
    private LocalTime sleepTimeStart;

    @JsonFormat(pattern = "HH:mm:ss")
    private LocalTime sleepTimeEnd;


    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createAtStart;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createAtEnd;

}
